package com.lysj.bhp.system.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_ip_record")
public class IpReord {
    @Id
    private String ip;
    private int times;//访问次数

    private long startRecordTime; // 开始记录访问次数
    private long endRecordTime;//结束记录访问次数
    private long blockEndTime;//限制结束时间
    private int status; //-400:黑名单;-100:临时限制;1:正常;


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public long getStartRecordTime() {
        return startRecordTime;
    }

    public void setStartRecordTime(long startRecordTime) {
        this.startRecordTime = startRecordTime;
    }

    public long getEndRecordTime() {
        return endRecordTime;
    }

    public void setEndRecordTime(long endRecordTime) {
        this.endRecordTime = endRecordTime;
    }

    public long getBlockEndTime() {
        return blockEndTime;
    }

    public void setBlockEndTime(long blockEndTime) {
        this.blockEndTime = blockEndTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
